package hanoi2;

public class MesEntiers implements Empilable {
    Integer val;

    public void init(int nb) {
    	val = new Integer(nb);
    }

    public int compareTo(Object v) {
		MesEntiers m = (MesEntiers) v;
		return val.compareTo(m.val);
    }

    public String toString() {
    	return "MesEntiers[" + val.intValue() +"]";
    }
    
}

